<?php
namespace app\validate;

use think\Validate;

class CheckTopicRole extends Validate
{

    protected $rule =   [
        'name'  => 'require|length:2,30',
        'remark'  => 'require|length:2,50',
    ];

    protected $message  =   [
        'name.require' => '请输入名称！',
        'name.length' => '名称在2-30个字符！',
        'remark.require' => '请输入说明！',
        'remark.length' => '说明在2-50个字符！',
    ];

}